import {request} from "@/utils";
// 登录API函数
function loginAPI( fromData ){
    // 发送post请求，url为'/authorizations'，数据为fromData
    return request({
        method: 'post',
        url: '/authorizations',
        data:fromData
    })
}

function getUserInfoAPI(){
    return request({
        method: 'GET',
        url: '/user/profile'
    })
}

export {loginAPI,getUserInfoAPI}